#ifndef NETWORKREPLY_H
#define NETWORKREPLY_H

#include "qnetworkreply.h"

class NetworkReply: public QNetworkReply {

	Q_OBJECT

private:

	QByteArray content;
	qint64 offset;

public:

	void setHttpStatusCode(int code, const QByteArray &statusText = QByteArray());
	void setHeader(QNetworkRequest::KnownHeaders header, const QVariant &value);
	void setContentType(QString contentType);
	void setContent(const QString &content);
	void setContent(const QByteArray &content);
	void abort();
	qint64 bytesAvailable() const;
	bool isSequential() const;

protected:

	qint64 readData(char *data, qint64 maxSize);

};

#endif // NETWORKREPLY_H
